
<script type="text/javascript">
	var CI = {
    	baseUrl: "<?= base_url(); ?>"
    };
	$(document).ready(function(){
		initTasksList();
		initTaskModal();
		autocompleteAssignedTo();
		autocompleteSprints();
		autocompleteAssignedToFilter();
		autocompleteSprintsFilter();
		$( "#start_date_filter" ).datepicker();
		$( "#end_date_filter" ).datepicker();

		$("#assigned_to").fcbkcomplete({
			json_url: CI.baseUrl + "index.php/user/get_json_users_autocomplete",
			cache: false,
			filter_case: true,
			filter_hide: true,
			newel: false
	});
	});
</script>
<div class="ui-widget-content">
<div id="search_box" class="container_12">
		<div id="filters_left_column" class="grid_6 alpha">
			<p>
				<label class="grid_2 alpha" for="priority_filter">Priority</label>
				<select name="priority_filter" id="priority_filter"></select>
			</p>
			<p>
				<label class="grid_2 alpha" for="assigned_to_filter">Assigned To</label>
				<input name="assigned_to_filter" id="assigned_to_filter" class="ui-autocomplete-input" type="text" value="" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
			</p>
			<p>
				<label class="grid_2 alpha" for="start_date_filter">Start Date</label>
				<input type="text"  name="start_date_filter" id="start_date_filter">
			</p>
			<p>
				<label class="grid_2 alpha" for="search_filter">Search</label>
				<input type="text"  name="search_filter" id="search_filter">			
			</p>
		</div>
		<div id="filters_right_column" class="grid_6 alpha">
			<p>
				<label class="grid_2 alpha" for="status_filter">Status</label>
				<select name="status_filter" id="status_filter"></select>
			</p>
			<p>
				<label class="grid_2 alpha" for="sprint_filter">Sprint</label>
				<input type="text"  name="sprint_filter" id="sprint_filter" class="ui-autocomplete-input" type="text" value="" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
			</p>
			<p>
				<label class="grid_2 alpha" for="end_date_filter">End Date</label>
				<input type="text"  name="end_date_filter" id="end_date_filter">		
			</p>
		</div>		
		<div class="clear"></div>
	</div>
	</div>
<div class="ui-widget-content">
<table id="tasks_list"></table> 
<div id="tasks_list_pager"></div>
<?php $this->load->view('task_upsert_view'); ?>
</div>
<?php $this->load->view('includes/footer'); ?>